/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.improvement.utils;

public enum BusinessCode {
    SUCCESS(0, "操作成功"),
    FAILURE(-1, "操作失败"),
    EXCEPTION(-2, "执行过程中发生异常"),
    NOT_LONGIN(10000, "没有登录，无法执行操作"),
    INSUFFICIENT_PARAM(102005, "缺少必要的参数"),
    EMPTY_FILE(-3, "没有登录，无法执行操作"),
    FILE_UPLOAD_ERROR(-3, "文件上传解析失败"),

    EMPTY_ASSESSMENT_TYPE(20901, "评估考核类型不能为空"),
    EMPTY_ASSESSMENT_ID(20902, "缺少评估考核id"),
    EMPTY_ASSESSMENT_CORPCODE(20903, "评估考核公司不能为空"),
    EMPTY_ASSESSMENT_YEAR(20904, "评估考核年份不能为空"),
    EMPTY_ASSESSMENT_TIME(20905, "评估考核时间不能为空"),
    EMPTY_ASSESSMENT_SCORE(20906, "评估考核分数不能为空"),
    ERROR_ASSESSMENT_SCORE(20907, "评估考核分数错误"),
    EMPTY_ASSESSMENT_ITEM_lIST(20908, "评估考核子项列表不能为空"),
    EMPTY_ASSESSMENT(20909, "评估考核不存在"),

    EMPTY_ITEM_ITEM_ID(20910, "评估考核子项要素id不能为空"),
    EMPTY_ITEM_ID(20911, "评估考核子项id不能为空"),

    EMPTY_ASSESSMENT_DEPTCODE_NAME(20912, "场站日常考核场站名或者code不能为空"),
    EMPTY_ASSESSMENT_QUERY_CORPCODE(20913, "场站日常考核查询公司code不能为空"),
    ASSESSMENT_CAN_NOT_EMPTY(20909, "评估考核不能为空"),

    EMPTY_ASSESSMENT_TIME_VALUE(20914, "考核时间值不能为空"),
    EMPTY_ASSESSMENT_TIME_TYPE(20915, "考核时间类型不能为空"),
    ERROR_ASSESSMENT_TIME_TYPE(20916, "错误考核时间类型"),
    EMPTY_ASSESSMENT_TITLE(20901, "评估考核标题不能为空"),

    EMPTY_ELEMENT_NAME(20902, "考核要素名称不能为空"),
    EMPTY_ELEMENT_TYPE(20903, "考核要素类型不能为空"),
    EMPTY_ELEMENT_BENCHMARK_SCORE(20904, "考核要素分值不能为空"),
    DUPLICATE_ELEMENT_NAME(20905, "考核要素名称不能重复"),

    EMPTY_APPROVER_LIST(20902, "审批人不能为空"),
    CAN_NOT_OPERATION(20902, "无法进行该操作")
    ;
    private final int code;
    private final String description;

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }

    BusinessCode(int code, String description) {
        this.code = code;
        this.description = description;
    }
}
